home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 5
/
Merciful - Disc 5.iso
/
software
/
r
/
real_3d
/
real3dv3.3b.dms
/
real3dv3.3b.adf
/
RPL.LZH
/
RPL
/
spiral.rpl
< prev
Wrap
Text File
|
1995-04-18
|
668b
|
33 lines
( Example which creates spiral by using given number of spheres
: CrSpiral
PARAM
VARIABLE iCnt ( number of spheres
FVARIABLE fSize ( size for spheres
ENDPARAM
iLOCK_EXCL O_LOCK
iCnt FETCH 0 DO
( position for the sphere to be created
I 0.1 F* SIN I 100 F/ F*
I 0.1 F* COS I 100 F/ F*
I 100 F/
( size of the sphere
fSize FFETCH 0 0 ( a )
0 fSize FFETCH 0 ( b )
0 0 fSize FFETCH ( c )
( other attributes
255 255 255 0 ( RGBA )
"ellipsoid"
0 ( flags )
"CEND"
C_ELLIPSOID DROP
LOOP
iLOCK_REMOVE O_LOCK
;
CrSpiral